<h3>CẬP NHẬT TỪ BẠN BÈ</h3>
<ul>
	<?php
		global $ubi;
		if ($updates) {
			foreach ($updates as $update) {
				$friend = $friends[$update->getUserID()];
	?>
				<li>
					<a href="index.php?view&type=user&userid=<?php echo $friend->getUserID()?>">
						<?php echo $friend->getUserName()?>
					</a>
					&nbsp;<?php echo $ubi['UPDATE_MESS'][$update->getUpdateType()]?>&nbsp;
					<a href="<?php echo $update->getLink()?>">
						<?php echo $update->getName()?>
					</a>
				</li>
	<?php 
			}
		} 
	?>	
</ul>